package mn.idax.exchange.otc.domain;

import lombok.Getter;
import lombok.Setter;
import mn.idax.exchange.common.bean.BaseResponse;

/**
 * Create by jack_huang on 2018/8/14
 */
@Getter
@Setter
public class CreateOrderResponse extends BaseResponse{

    private static final long serialVersionUID = -227634604613628164L;

    private Object Data;

//    private String orderNum;

    public static CreateOrderResponse makeCreateOrder(Integer code, String msg, Object data) {
//    public static CreateOrderResponse makeCreateOrder(Integer code, String msg, String orderNum) {
        CreateOrderResponse createOrderResponse = new CreateOrderResponse();
        createOrderResponse.setSuccess(code.intValue());
        createOrderResponse.setMessage(msg);
        createOrderResponse.setData(data);
        return createOrderResponse;
    }

}
